package com.ybwh.springboot1.websocket.client;

import java.util.concurrent.atomic.AtomicLong;

public class ReqMsg {
	private Entry Entry;
	private IMMsgData IMMsgData;

	public static class Entry {
		private static AtomicLong uniqueKeySed = new AtomicLong(0);
		
		private Long imid;
		private Long cid;
		private String uniqueKey= "" + uniqueKeySed.incrementAndGet();
		private Integer clientType;

		public Entry() {

		}

		public Entry(Long imid, Long cid, Integer clientType) {
			this.imid = imid;
			this.cid = cid;
			this.clientType = clientType;
		}

		public Long getImid() {
			return imid;
		}

		public void setImid(Long imid) {
			this.imid = imid;
		}

		public Long getCid() {
			return cid;
		}

		public void setCid(Long cid) {
			this.cid = cid;
		}

		public String getUniqueKey() {
			return uniqueKey;
		}

		public void setUniqueKey(String uniqueKey) {
			this.uniqueKey = uniqueKey;
		}

		public Integer getClientType() {
			return clientType;
		}

		public void setClientType(Integer clientType) {
			this.clientType = clientType;
		}

	}

	public static class IMMsgData {
		private Long sessionId;
		private String fromUserName;
		private String imageUrl;
		private Integer sessionType;
		private Integer msgType;
		private String msgContent;
		

		public Long getSessionId() {
			return sessionId;
		}

		public void setSessionId(Long sessionId) {
			this.sessionId = sessionId;
		}

		public String getFromUserName() {
			return fromUserName;
		}

		public void setFromUserName(String fromUserName) {
			this.fromUserName = fromUserName;
		}

		public String getImageUrl() {
			return imageUrl;
		}

		public void setImageUrl(String imageUrl) {
			this.imageUrl = imageUrl;
		}

		public Integer getMsgType() {
			return msgType;
		}

		public void setMsgType(Integer msgType) {
			this.msgType = msgType;
		}

		public String getMsgContent() {
			return msgContent;
		}

		public void setMsgContent(String msgContent) {
			this.msgContent = msgContent;
		}

		public Integer getSessionType() {
			return sessionType;
		}
		

		public void setSessionType(Integer sessionType) {
			this.sessionType = sessionType;
		}
		

	}

	public Entry getEntry() {
		return Entry;
	}

	public void setEntry(Entry entry) {
		Entry = entry;
	}

	public IMMsgData getIMMsgData() {
		return IMMsgData;
	}

	public void setIMMsgData(IMMsgData iMMsgData) {
		IMMsgData = iMMsgData;
	}

}
